package com.luweijie;


import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import springfox.documentation.schema.Entry;

import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Map;


public class easd {
    public static void main(String[] args) {
        IdentityHashMap<String, String> map = new IdentityHashMap<String, String>();
        String a=new String("luweijie");
        String a2=new String("luweijie");
        int i = a.hashCode();
        int te = a2.hashCode();
        map.put(a,"18");
        map.put(a2,"19");
        System.out.println("map = " + map);

        MyHashMap<String> stringMyHashMap = new MyHashMap<>();
        stringMyHashMap.put("卢伟杰","18");
        stringMyHashMap.put("卢伟杰","19");

        for (Map.Entry<String, String> stringStringEntry : stringMyHashMap.entrySet()) {
            String key = stringStringEntry.getKey();
            String value = stringStringEntry.getValue();
            System.out.println("key"+key+"value = " + value);
        }
    }
}
